cmake_minimum_required(VERSION 3.8)
project(my_service_pkg)

find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(example_interfaces REQUIRED)

# 服务端节点
add_executable(server_node src/add_two_ints_server.cpp)
ament_target_dependencies(server_node
  rclcpp
  example_interfaces
)

# 客户端节点
add_executable(client_node src/add_two_ints_client.cpp)
ament_target_dependencies(client_node
  rclcpp
  example_interfaces
)

# 添加人脸服务端节点
add_executable(add_face_embedding_server src/add_face_embedding_server.cpp)
ament_target_dependencies(add_face_embedding_server
  rclcpp
  example_interfaces
)

install(TARGETS
  server_node
  client_node
  add_face_embedding_server
  DESTINATION lib/${PROJECT_NAME})

ament_export_dependencies(
  rclcpp
  example_interfaces
)

ament_package()
